小编Ser*_*sov的帖子

jQuery draggable隐藏CSS3多列

我正在尝试拖放多个CSS3列.我遇到的问题是拖拽在它旁边的列后面.如果我不使用CSS3列,那么它工作正常.

看到这个Codepen.

HTML:

<div class='row-fluid recurring-items'>
    <div class='recurring-items-aisle'>
      <h4 class='recurring-items-header'>
        Baking
      </h4>
      <ul class='unstyled recurring-aisle' id="aisle-11">
            <li class='recurring-item'>
  <!-- <i class='icon-reorder handle has-tooltip' title="drag to another aisle"></i> -->
  <span class='handle'>H</span>
  All Purpose Flour
    <!-- <i class='icon-remove-circle has-tooltip' title='Remove item' data-remove-url></i> -->
</li>
            <li class='recurring-item'>
  <!-- <i class='icon-reorder handle has-tooltip' title="drag to another aisle"></i> -->
  <span class='handle'>H</span>
  Sugar
    <!-- <i class='icon-remove-circle has-tooltip' title='Remove item' data-remove-url></i> -->
</li>
            <li class='recurring-item'>
  <!-- <i class='icon-reorder handle has-tooltip' title="drag to another aisle"></i> --> …
Run Code Online (Sandbox Code Playgroud)

jquery jquery-ui draggable css3 multiple-columns

6
推荐指数
1
解决办法
449
查看次数

导航折叠按钮不适用于iPad

除了iPad之外在其他地方工作,查看端口还添加了:

<meta name="viewport" content="width=device-width, initial-scale=1">
Run Code Online (Sandbox Code Playgroud)

请帮我找一个解决方案,看看我的网站.

以下是在iPhone上查看结果的方式.

以下是在iPad上查看结果的方式.

HTML:

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="top">
        <div class="container topmenu">
            <ul class="nav nav-pills pull-right" style="margin-top: -1px;">
                <li role="presentation"><a href="#" data-toggle="modal" data-target="#loginModal">Login</a>
                </li>
                <li role="presentation"><a href="#" data-toggle="modal" data-target="#registerModal">Register</a>
                </li>
                <li role="presentation">
                    <a href="https://www.facebook.com/pages/allvideolecturescom/320909451432640" class="soc">
                    <img src="http://allvideolectures.com/img/facebook_top.png" alt="" />
                    </a>
                </li>
                <li role="presentation">
                    <a href="https://twitter.com/videolecture" class="soc">
                    <img src="http://allvideolectures.com/img/twitter_top.png" alt="" />
                    </a>
                </li>
                <li role="presentation">
                    <a href="https:/google.com/+Allvideolectures" class="soc">
                    <img src="http://allvideolectures.com/img/google_top.png" alt="" />
                    </a>
                </li>
            </ul>
        </div> …
Run Code Online (Sandbox Code Playgroud)

html css less twitter-bootstrap

6
推荐指数
1
解决办法
951
查看次数

Webpack 4:有条件地启用PostCSS插件

我使用一个单独的postcss.config.js文件将PostCSS集成到Webpack中。

我想cssnano在进行生产构建时启用,而对开发构建禁用它。我怎样才能做到这一点?

这是我的webpack.config.js

const webpack = require('webpack');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CleanWebpackPlugin = require('clean-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');

const path = require('path');

module.exports = (env, argv) =>
{
    //const isProduction = (process.env.WEBPACK_MODE === 'production')
    const isProduction = argv.mode === 'production' || process.env.NODE_ENV === 'production';

    const config = {
        entry: './src/index.js',
        output: {
            path: path.resolve(__dirname, 'dist'),
            filename: '[name].[contenthash].js',
            chunkFilename: '[name].[contenthash].js'
        },
        devtool: 'source-map',
        module: {
            rules: [
                {
                    test: /\.(sa|sc|c)ss$/,
                    use: [
                        // fallback to …
Run Code Online (Sandbox Code Playgroud)

javascript node.js webpack postcss webpack-4

6
推荐指数
1
解决办法
927
查看次数

Javascript拼接方法中的怪异错误

我有一个包含“零”的数组,我想将所有“零”移到该数组的最后一个索引。

预期的输出是:

[1,2,3,0,0,0,0]
Run Code Online (Sandbox Code Playgroud)

但是我得到了:

[1,2,0,3,0,0,0]
Run Code Online (Sandbox Code Playgroud)

javascript sorting algorithm array-algorithms

6
推荐指数
2
解决办法
141
查看次数

如何将 React.Component 放入 CSS 内容属性(在 :before/:after 伪元素中)?

在 中styled-components,我试图通过传递 React Icon 来在悬停时渲染它,content但由于某种原因,我的悬停渲染是[Object Object]

\n

成分:

\n
export const FooLink = styled(Link)`\n  padding: 0.5rem 2rem;\n  color: ${({ theme }) => theme.colors.white};\n  text-align: center;\n  margin: 0 auto;\n  position: relative;\n  font-size: ${({ theme }) => theme.fontSizes.p};\n  letter-spacing: 0.15em;\n  transition: ${({ theme }) => theme.animations.trans3};\n\n  &:after {\n    content: \'${FaArrowRight}\';\n    /* content: \'>\'; */\n    position: absolute;\n    opacity: 0;\n    right: -${({ theme }) => theme.spacings.small};\n    transition: ${({ theme }) => theme.animations.trans3};\n  }\n\n  &:hover {\n    padding-right: ${({ theme …
Run Code Online (Sandbox Code Playgroud)

javascript css reactjs styled-components react-component

6
推荐指数
1
解决办法
1万
查看次数

在Oracle DBMS_XMLDOM包中获取XML元素值

我有XML文件存储在DB中表的clob列中.

<?xml version="1.0" encoding="UTF-8"?>
<document>
  <row>
    <organization>asdklfjas;kldfj;LASKJFAS</organization>
    <phones>sjhdfhjaghjskfg</phones>
    <persons>hkjg</persons>
  </row>                                                  
</document>
Run Code Online (Sandbox Code Playgroud)

我正在使用DBMS_XMLDOM包来解析它.

declare
  v_clob clob;
  v_doc dbms_xmldom.domdocument;
begin
  ...
  v_doc := dbms_xmldom.newdomdocument(v_clob);
  v_domelement := dbms_xmldom.getdocumentelement(v_doc);
  ...
end;
Run Code Online (Sandbox Code Playgroud)

例如,我只需要从某个元素中获取价值<persons>.我该怎么做?

oracle oracle11g xml-parsing

5
推荐指数
1
解决办法
1万
查看次数

CSS3关键帧动画在Retina显示屏上显得迟钝

采取一个非常基本的CSS3动画规则,如下所示:

.dimension.fadeIn {
  -webkit-animation: fadeIn 0.7s;
  -webkit-animation-timing-function:ease-in-out;
  height:24px;
}

@-webkit-keyframes fadeIn {
  0% {
    height:0;
    opacity: 0;
  }
  30% {
    height:24px; /* the default row (tr) height */
    opacity: 0;
  }
  90% {
    opacity: 1;
  }
}
Run Code Online (Sandbox Code Playgroud)

除了MacBook Retina显示屏外,在每台显示器的Chrome中,动画都像丝绸一样流畅.当我们在MBP视网膜上进行尝试时,动画运行速度明显变慢,并且通常感觉很迟钝.

我在使用Transit时会遇到相同的情况(如果您有视网膜和外部显示器,请尝试运行Transit的演示(或任何CSS3动画?),在两个屏幕之间进行比较,您应该感觉它不像您那样流畅喜欢)

我们尝试通过设置-webkit-transform: translateZ(0)和其他一些东西来利用GPU,-webkit-backface-visibility: hidden但无济于事.

显然Retina显示器具有更高的像素密度,但是可以采取什么方法来解决这个问题呢?

css animation css3 retina

5
推荐指数
1
解决办法
849
查看次数

Bootstrap覆盖问题

我有CSS覆盖问题.覆盖图案不会在图像大小的整个宽度上拉伸.左侧总是有一个小边框.有任何想法吗? http://www.bootply.com/FrnoIvUpxS

.img-container {
    position: relative;
    cursor: pointer;
    display: table;
    overflow:hidden;
text-align:center;  
width:100%;
min-height: 360px;
}

.img-container img {
 opacity: 1;
    position: absolute;
    min-height:360px;
    width: 500px;
}


.img-container .overlay {

    position: relative;

    height: 100%;
    vertical-align:middle;
    display: table-cell;
    background-color:rgba(130,216,209,0.00);
    opacity:0.0;
}


.img-container p{
    width:inherit;
    margin-top:25px;
    } 
.img-container h3 {

     } 
.img-container:hover .overlay {
background-color:rgba(130,216,209,0.9); 

        opacity:1;
 }
 .img-container:hover img{
        -moz-transform: scale(1.4);
    -o-transform: scale(1.4);
    -webkit-transform: scale(1.4);
    transform: scale(1.4);
    opacity:1;}

    .img-container:hover p, .img-container:hover h3 { }
Run Code Online (Sandbox Code Playgroud)
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row">
<div …
Run Code Online (Sandbox Code Playgroud)

html css overlay css3 twitter-bootstrap

5
推荐指数
1
解决办法
1263
查看次数

单击时未突出显示 Bootstrap 按钮

我有一个带有 3 个按钮的应用程序,这 3 个按钮进行 AJAX 调用以检索一些数据并用数据重绘表格。但是,当单击该按钮时,应保持突出显示,以便用户知道他们正在查看哪些数据。

这是调用Web API方法的JS代码:

   iniciativasEstrategicas.GetVistaActividades = function (filtro) {
        var idObjetivoValue = sessionStorage.idObjetivoValue;
        $('#tab_vista1').html('<br><br><br><img class="loadImage" src="Images/loader.gif" />');
        $.ajax({
            url: 'IniciativasEstrategicasWebPart/GetVistaActividades',
            type: 'POST',
            data: {
                idObjetivo: idObjetivoValue,
                filtro: filtro
            },
            success: function (data) {
                drawVistaActividades(data);
            },
            error: function (data) {
                showErrorMessage(data);
            }
        });
    }   
Run Code Online (Sandbox Code Playgroud)

这是绘制数据的方法:

 function drawVistaActividades(data) {
        resetBreadCrumb();
        var html = "";
        for (var i = 0; i < data.length; i++) {
            html += template.rowVistaActividades
                .replace("{0}", data[i].nombreActividad)
                .replace("{1}", data[i].iniciativaName)
                .replace("{2}", data[i].fechaVencimiento)
                .replace("{3}", data[i].fechaRealTerminacion)
                .replace("{4}", data[i].responsables); …
Run Code Online (Sandbox Code Playgroud)

javascript jquery twitter-bootstrap

5
推荐指数
1
解决办法
939
查看次数

React组件中的故障加载方法

反应NOOB问题我有:

我有一个使用Axios进行API调用的JSX文件:

fetch-api-data.jsx:

import * as axios from 'axios';

export class FetchApiData {
  constructor() {
    console.log('FetchAPIData loaded');
  }

  shareMyStoryData(URL) {
    return axios.get(URL)
    .then(function (response) {
      console.log(response.data);
    })
    .catch(function (error) {
      console.log(error);
    });
  }
}
Run Code Online (Sandbox Code Playgroud)

我有一个引用该API调用的组件:

share-my-story.jsx

import * as React from 'react';
import * as DOM from 'react-dom';
import PropTypes from 'prop-types';
import './share-my-story.scss';
import FetchApiData from './fetch-api-data';

class ShareMyStory extends React.Component {

  componentDidMount() {
    const URL = '/js/feed/sms.json';
    const smsData = FetchApiData.shareMyStoryData(URL);
    console.log('shareMyStory.jsx - componentDidMount: load: ' + …
Run Code Online (Sandbox Code Playgroud)

javascript jsx ecmascript-6 reactjs es6-class

5
推荐指数
1
解决办法
30
查看次数