[英]Siebel Open UI Resizing Image Applet
The new Siebel Open UI, has improve visualization. 新的Siebel Open UI改善了可视化。 I have taken a cue from the Card Applet to meet a requirement of an image applet.
我已经从Card Applet中得到提示,以满足图像Applet的要求。 I have a created a simple applet with just one field which is the image source path from the contact BC , the html type for the field is an image control and the field retrieval type is Field Data, everything works fine except that I cant resize the image to a fixed size like the card applet for example i want the image to be resized to 200px by 200px.
我创建了一个简单的applet,其中只有一个字段,它是联系人BC的图像源路径,该字段的html类型是图像控件,字段检索类型是Field Data,一切正常,但是我无法调整图像到像卡片小程序这样的固定大小,例如,我希望将图像大小调整为200px x 200px。 See Image attached within.
请参阅附件中的图像。 have tried looking for the css attribute for the image control but I could not find it, will appreciate suggestion on this solution
已经尝试为图像控件寻找css属性,但是我找不到它,对此解决方案提出了建议
I'm working on a similar requirement. 我正在满足类似的要求。 I used custom css in the Siebel theme, something like this:
我在Siebel主题中使用了自定义CSS,如下所示:
.siebui-icon-contactfilename>img {
width: 90px;
height: 90px;
}
Doing this I could resize the image to 90x90 px: 这样做,我可以将图像调整为90x90像素:
Regards. 问候。
@ Alexander has given the perfect clue , find the css properties and edit it in this case use @ Alexander提供了完美的线索,找到css属性并在这种情况下使用它进行编辑
.mceGridField.siebui-value.mceField > span > a > img {
width: 200px;
height: 200px;
}
I believe you must have tried this.You can set height/width css atribute to resize image, 我相信您一定已经尝试过。您可以设置高度/宽度css属性来调整图片大小,
You can directly set this in html attribute of control in applet. 您可以在applet控件的html属性中直接设置它。 For example,
例如,
http://www.askmesiebel.com/2014/02/siebel-fields-validation-through-html-attributes/ http://www.askmesiebel.com/2014/02/siebel-fields-validation-through-html-attributes/
If this is not your answer, please explain your question. 如果这不是您的答案,请解释您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.