如何通过CSS或javascript给句子判刑?
How to give sentence case to sentences through CSS or javascript?
如何通过CSS或javascript给句子判刑?
I've tried these CSS properties but these are different
我尝试过这些CSS属性,但这些属性不同
capitalize Transforms the first character of each word to uppercase
uppercase Transforms all characters to uppercase
lowercase Transforms all characters to lowercase
Edit: 19 FEB 2010
编辑:2010年2月19日
is there any option in jquery to achieve this?
在jquery中有没有选择来实现这个目标?
4 个解决方案
#1
1
Don't use JavaScript to fix your content. This is inefficient on a scale of ridiculous. Write your content correctly before you publish it or use some coding scheme on the server side. If this is some scheme to fix content that you don't control, such as user supplied, then simply state the content comes from your users and not you.
不要使用JavaScript来修复您的内容。这在荒谬的范围内是低效的。在发布内容之前正确编写内容或在服务器端使用某种编码方案。如果这是修复您无法控制的内容的一些方案,例如用户提供的内容,则只需说明内容来自您的用户,而不是您。
Seriously, this is going to delay the loading of your page significantly and cause visitors to abandon your site.
说真的,这会显着延迟页面的加载,导致访问者放弃您的网站。
更多相关文章
- 使用AJAX和JSON来显示来自PHP的HTML内容。
- JQuery属性与样式――.val()和增加样式.addClass()
- 关于jQuery获取html标签自定义属性值或data值
- JQuery------获取中的文件内容
- jquery为属性过滤器动态添加值?
- 最简单jquery.ajax+php例子(对话框显示文本框输入内容),以小见大
- jsf中获取属性值的普通获取和jquery获取区别
- bootstrap-select js jQuery控制select属性变化
- Chrome显示错误为:由于内容安全策略,拒绝执行内联脚本